<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="salab.bean.H1N1Incident"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<%
	String id = request.getParameter("id");
	List<H1N1Incident> results = (List<H1N1Incident>) request.getSession().getAttribute("search_result");
	if (results == null) {
		results = new ArrayList<H1N1Incident>();
	}
	H1N1Incident incident = null;
	for( H1N1Incident inci : results )
	{
		if( inci.getIncidentId().equalsIgnoreCase( id ) )
		{
			incident = inci;
			break;
		}
	}
%>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Incident View</title>
<link rel="stylesheet" type="text/css" href="view.css" media="all">
<script type="text/javascript" src="view.js"></script> <script
	type="text/javascript" src="calendar.js"></script>
</head>
<body id="main_body">
<img id="top" src="top.png" alt="">
<div id="form_container">
<h1><a>Incident View</a></h1>
<form id="form_199158" class="appnitro" method="post"
	action="IncidentReportFormHandler">
<div class="form_description">
<h2>Incident View</h2>
</div>
<ul>
	<li class="section_break">
	<h3>Patient Details</h3>
	<p></p>
	</li>
	<li id="li_1"><label class="description" for="element_1">Patient
	Name </label>
	<div><%=incident.getPatientName() %></div>
	</li>
	<li id="li_14"><label class="description" for="element_14">Sex</label>
	<div style="float: left"><%=incident.getGender() %></div>
	</li>
	
	<li id="li_6"><label class="description" for="element_6">Contact Information</label>
	<div><%=incident.getContactInformation() %></div>
	</li>
	
	<li id="li_7"><label class="description" for="element_12">Birth Day</label>
	<span><%=incident.getDateOfBirth().toString() %></span></li>

	
	<li id="li_3"><label class="description" for="element_3">Area</label>
	<div><%=incident.getArea() %></div>
	</li>
	
	<li id="li_8"><label class="description" for="element_8">Description
	</label>
	<div><%=incident.getComplaints() %></div>
	</li>
	
	<li id="li_12"><label class="description" for="element_12">Contact History</label>
	<div><%=incident.getContactHistory() %></div>
	</li>
	
	<li id="li_12"><label class="description" for="element_12">Travel History</label>
	<div><%=incident.getTravelHistory() %></div>
	</li>
</ul>
</form>
</div>
<img id="bottom" src="bottom.png" alt="" />
</body>
</html>
